<include file="Public:header"/>
<!--主页面-->
<div id="main-content" class="content">
    <ul class="breadcrumb">
        <li><a href="/">首页</a></li>
        <li class="active"><a href="">管理员</a></li>
        <li class="active">管理员列表</li>
    </ul>

    <div class="page-header clearfix">
        <h3>管理员</h3>
        <ul class="nav nav-tabs">    
            <li class="active">
                <a href="{:U('Admin/adminList')}">管理员列表</a>
            </li>
            <li>
                <a href="{:U('Admin/addAdmin')}">添加管理员</a>
            </li>
        </ul>
    </div>


    <div class="content-box-content">
        <table class="table table-striped table-framed table-hover">
            <thead>
            <tr>
                <th width="10%">添加时间</th>
                <th>编号</th>
                <th>账号</th>
                <th>组别</th>
                <th>最后登录时间</th>
                <th>最后登录IP</th>
                <th width="10%">操作</th>
            </tr>
            </thead>
            <!--标题 end-->

            <!--内容 start-->
            <tbody class="tbody">
            <if condition="empty($admin_list)">
                <tr><td colspan="10"><span style="font-size:14px;">暂无数据</span></td></tr>
            </if>
            <volist name="admin_list" id="admin">
                <tr>
                    <td>{$admin['ctime']|date='Y-m-d',###}</td>
                    <td>{$admin['a_id']}</td>
                    <td>{$admin['account']}</td>
                    <td>
                        <if condition="$admin['a_id'] eq 1">
                            超级管理员
                        <else/>
                            {$admin['group_name']}
                        </if>
                    </td>
                    <td>{$admin['last_login_time']|date='Y-m-d H:i:s',###}</td>
                    <td>{$admin['last_login_ip']}</td>
                    <td>
                        <if condition="$admin['a_id'] neq 1">
                            <a href="{:U('Admin/editAdmin',array('a_id'=>$admin['a_id']))}" title="编辑" class="modify">
                                <span class="icon glyphicon glyphicon-pencil"></span>
                            </a>&nbsp;
                            <a href="#" title="删除" class="delete-delete">
                               <span class="icon glyphicon glyphicon-remove"></span>
                            </a><input type="hidden" value="{:U('Admin/deleteAdmin',array('a_id'=>$admin['a_id']))}">
                        </if>
                    </td>
                </tr>
            </volist>
            </tbody>

            <tfoot>

            </tfoot>
        </table>
    </div>
</div>
<include file="Public:footer"/>
